AITranslate\AI_Translate_Core D

Total Complexity 817
Dependencies 9
Dependents 18
Total lines 5,701
Lines of code 3,382
Logical lines of code 1,972
Comment lines 1,547
Methods 110
Properties 12

Methods 110

Method Rating Maintainability Complexity Lines of code
batch_translate_items()
D
19
66 190
translate_text()
D
21
49 193
translate_menu_items()
D
28
46 117
reverse_translate_slug()
D
24
41 184
translate_fluentform_fields()
D
28
30 142
get_current_language()
D
34 33 83
get_translated_slug()
C
30 25 132
validate_api_settings()
B
38 23 61
translate_url()
B
39 23 57
get_homepage_content()
B
38 21 67
translate_template_part()
B
40 19 55
add_alternate_hreflang_links()
B
39 17 61
add_simple_meta_description()
B
39 16 63
parse_translated_request()
B
42 17 46
make_api_request()
A
38 11 72
identify_post_from_url()
A
39 11 66
update_slug_translations_on_save()
A
42 11 50
get_cache_statistics()
A
44 9 48
translate_url_slugs()
A
49 10 31
display_language_switcher()
A
44 9 45
save_to_cache()
A
46 9 41
handle_404_redirect()
A
52 10 21
initialize_cache_directories()
A
50 9 34
generate_website_context_suggestion()
A
43 8 49
clear_global_ui_cache()
A
48 9 32
remove_marker_from_jetpack_og_tags()
A
51 9 27
clear_cache_for_language()
A
50 9 26
build_translation_prompt()
A
46 8 37
translate_plugin_content()
A
50 8 30
repair_slug_translations()
A
45 7 43
translate_post_content()
A
52 8 24
extract_security_tokens()
A
39 4 83
clear_transient_cache()
S
46 6 40
generate_title_from_url()
S
52 7 23
generate_cache_key()
S
55 7 20
clear_slug_cache_for_post()
S
47 6 34
cleanup_expired_cache()
S
58 7 16
clear_menu_cache()
S
50 6 30
clear_cache_on_post_status_change()
S
62 7 11
exclude_rendered_shortcode_html()
S
44 4 55
is_only_excluded_shortcodes()
S
52 6 24
enhance_search_query()
S
53 6 23
force_clear_slug_cache_by_slug()
S
47 5 36
validate_settings()
S
56 6 18
translate_search_result_title()
S
56 6 18
is_plugin_supported()
S
59 6 14
cleanup_old_slug_translations()
S
52 5 25
is_cache_expired()
S
47 4 38
do_translate()
S
48 4 31
translate_widget_title()
S
56 5 16
get_assets_dir()
S
59 5 15
translate_path_segments()
S
51 4 26
translate_search_form()
S
47 3 41
get_global_ui_element()
S
53 4 22
filter_post_type_permalink()
S
54 4 21
translate_search_terms()
S
57 4 18
translate_search_placeholders()
S
50 3 31
translate_search_result_excerpt()
S
59 4 15
translate_search_page_title()
S
59 4 15
translate_search_content()
S
59 4 15
force_menu_cache_clear()
S
60 4 14
get_cached_content()
S
61 4 11
translate_terms()
S
62 4 11
get_available_languages()
S
49 2 31
clear_translation_cache()
S
64 4 10
limit_slug_length()
S
58 3 15
restore_shortcode_pairs()
S
60 3 13
get_supported_plugins()
S
48 1 43
translate_search_query()
S
61 3 12
save_translated_slug_to_db()
S
55 2 21
clear_memory_and_transients()
S
56 2 20
get_translated_slug_from_db()
S
57 2 18
extract_shortcode_pairs()
S
57 2 17
get_detectable_languages()
S
70 3 6
remove_translation_marker()
S
69 3 6
remove_marker_from_bloginfo()
S
70 3 6
get_caching_strategy()
S
63 3 10
init()
S
60 2 13
get_default_settings()
S
55 1 19
get_api_providers()
S
57 1 19
get_instance()
S
71 2 6
schedule_cleanup()
S
73 2 5
get_settings()
S
68 2 7
get_api_url_for_provider()
S
65 2 8
clear_slug_cache_for_language()
S
63 2 10
needs_translation()
S
75 2 4
translate_navigation()
S
65 2 9
conditionally_add_fluentform_filter()
S
72 2 5
get_extractable_shortcodes()
S
63 1 13
__construct()
S
60 1 12
normalize_text_for_cache()
S
74 1 5
get_cache_dir()
S
74 1 4
get_language_name()
S
75 1 4
translate_site_title()
S
78 1 3
translate_tagline()
S
78 1 3
log_event()
S
71 1 5
clear_slug_cache_table()
S
72 1 5
clear_all_cache()
S
73 1 6
set_current_language()
S
81 1 3
hook_display_language_switcher()
S
82 1 3
strip_all_shortcodes_for_cache()
S
75 1 4
clean_html_string()
S
67 1 7
text_to_slug()
S
80 1 3
get_truly_excluded_shortcodes()
S
73 1 6
get_all_memory_cache()
S
80 1 3
is_in_memory_cache()
S
78 1 3
get_from_memory_cache()
S
78 1 3
set_in_memory_cache()
S
79 1 3
clear_prompt_cache()
S
77 1 4
cache_global_ui_element()
S
62 1 10